package com.nativetalk.dao;

import com.nativetalk.base.Page;
import com.nativetalk.bean.TsNtDict;
import com.nativetalk.bean.dict.TeacherLanguage;
import com.nativetalk.bean.dict.TsNtDictDeatil;
import com.nativetalk.bean.dict.TsNtDictIndex;
import com.nativetalk.bean.dict.TsNtDictTea;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@MyBatisRepository
public interface TsNtDictDao {
	/**
	 * @Purpose  根据类别查找静态字典数据(id,code_eng_name)
	 * @version  2.0
	 * @author   lizhun
	 * @param    code_type
	 * @return   List<TsNtDictTea>
	 */
	public List<TsNtDictTea> findTsNtDictTeas(String code_type);
	/**
	 * @Purpose  根据类别查找静态字典数据(id,code_name,code_eng_name)
	 * @version  2.0
	 * @author   lizhun
	 * @param    code_type
	 * @return   List<TsNtDictIndex>
	 */
	public List<TsNtDictIndex> findTsNtDictIndexs(String code_type);
	/**
	 * @Purpose  查找所有静态字典
	 * @version  2.0
	 * @author   lizhun
	 * @return   List<TsNtDictDeatil>
	 */
	public List<TsNtDictDeatil> findTsNtDictDeatils();
	/**
	 * @Purpose  查找所有国家个数
	 * @version  1.0
	 * @author   wuyuanhui
	 * @return   int
	 */
	public int findTsNtDictSize(Page page);
	/**
	 * @Purpose  查找所有国家信息
	 * @version  1.0
	 * @author   wuyuanhui
	 * @return   int
	 */
	public List<TsNtDict> findTsNtDictPage(Page page);
	/**
	 * @Purpose  删除大学
	 * @version  1.0
	 * @author   wuyuanhui
	 * @return   int
	 */
	public TsNtDict findTsNtDictByDictId(Map<String, Object> obj);
	/**
	 * @Purpose  更新大学
	 * @version  1.0
	 * @author   wuyuanhui
	 * @return   int
	 */
	public void updateTsNtDict(TsNtDict tsNtDictUpdate);
	/**
	 * @Purpose  查找大学的个数
	 * @version  1.0
	 * @author   wuyuanhui
	 * @return   int
	 */
	public int findUniversitySize(Map<String, Object> map);
	/**
	 * @Purpose  查找大学信息
	 * @version  1.0
	 * @author   wuyuanhui
	 * @return   int
	 */
	public List<TsNtDict> findUniversityPage(Map<String, Object> map);
	/**
	 * @Purpose  添加
	 * @version  1.0
	 * @author   wuyuanhui
	 * @return   int
	 */
	public void insertTsNtDict(TsNtDict dsNtDict);

	List<TeacherLanguage> findTeacherLanguages(String language);

	public List<TsNtDict> findALlLabels(@Param("code_type") String code_type);

	public List<TsNtDict> findTeacherLabels(@Param("tea_id") Integer tea_id);

	public void deleteTeacherLabel(@Param("tea_lab_id") Integer tea_lab_id);

	public void insertTeacherLabel(@Param("tea_id") Integer tea_id, @Param("dict_id") Integer dict_id);
}
